package com.ss.android.article.base.feature.app.e;

import android.content.Context;

import com.bytedance.retrofit2.Callback;
import com.bytedance.retrofit2.ResponseWrapper;
import com.ss.android.article.browser.R;
import com.ss.android.article.common.gg;
import com.ss.android.common.callback.CallbackCenter;
import com.ss.android.newmedia.BaseAppData;

final class d implements Callback {
    private final TTAndroidObject d;
    private final String a;
    private final long b;
    private final Context c;

    d(TTAndroidObject arg2, String arg3, long arg4, Context arg6) {
        this.d = arg2;
        this.a = arg3;
        this.b = arg4;
        this.c = arg6;

    }

    public final void onCacheResponse(ResponseWrapper response) {
        this.d.a(this.a, this.b, 1);
        CallbackCenter.notifyCallback(BaseAppData.callbackTypeDiggBuryChange, new Object[]{Long.valueOf(this.b), Integer.valueOf(2)});
    }

    public final void onErrorResponse(Throwable throwable) {
        new gg(this.c, R.string.ei).a(throwable);
    }
}

